<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
<h:head>
    <title>Log in</title>

</h:head>
<h:body>
    <h:messages/>
    <h:form id="loginForm">
        <h:panelGrid columns="2">
            <h:outputLabel for="username">Username:</h:outputLabel>
            <h:inputText id="username" value="#{credentials.username}"/>
            <h:outputLabel for="password">Password:</h:outputLabel>
            <h:inputSecret id="password" value="#{credentials.password}"/>
            <h:commandButton id="login" value="Log in"
                             action="#{loginController.login}"/>
        </h:panelGrid>
    </h:form>
</h:body>
</html>